import java.util.*;
import java.util.concurrent.locks.Condition;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName interview
 * @Description: TODO
 * @date ${DAT}14:32
 */
public class Demo {
    abstract static class Super{
        public static String getType(Condition condition){
            return "Super:collection";
        }
        public static String getType(List list){
            return "Super:List";
        }
        public String getType(ArrayList arrayList){
            return "Super:arrayList";
        }
        public static String getType(Set set){
            return "Super:set";
        }
        public String getType(HashSet set){
            return "Super:hashSet";
        }
    }
    static class Sub extends Super{
        public static String getType(Condition condition){
            return "Sub";
        }
    }

    public static void main(String[] args) {
        Super subToSuper = new Sub();
            System.out.println(subToSuper.getType(new HashSet()));
        System.out.println(subToSuper.getType(new ArrayList()));;
    }
}
